/**
 * 封装前端接口
 */
import Checkenv from '../middleware/checkenv'
import request from '../utils/request'

export const getBookList = (params) => request.get(`${Checkenv.url.api}/book`, params);
export const deleteBook = (id) => request.delete(`${Checkenv.url.api}/book/${id}`);
export const addBook = (params) => request.post(`${Checkenv.url.api}/book`, params);
export const editBook = (id, params) => request.psot(`${Checkenv.url.api}/book/${id}`, params);
export const getBookDetail = (id) => request.get(`${Checkenv.url.api}/detail/${id}`);
